<template>
  <el-dialog title="患者信息" :visible.sync="dialogVisible" width="50%">
    <el-form ref="form" :model="form" label-width="80px">
      <el-form-item label="用户姓名">
        <el-input v-model="form.username"></el-input>
      </el-form-item>
      <el-form-item label="vip等级">
        <el-input v-model="form.type"></el-input>
      </el-form-item>
      <el-form-item label="性别">
        <el-input v-model="typesex[form.sextype]"></el-input>
      </el-form-item>
      <el-form-item label="年龄">
        <el-input v-model="form.age"></el-input>
      </el-form-item>
      <el-form-item label="接诊状态">
        <el-input v-model="atatetypeobj[form.atatetype]"></el-input>
      </el-form-item>
      <el-form-item label="创建时间">
        <el-input v-model="form.creatTime"></el-input>
      </el-form-item>
      <el-form-item label="科室">
        <el-input v-model="form.section"></el-input>
      </el-form-item>
      <el-form-item label="医生姓名">
        <el-input v-model="form.doctorname"></el-input>
      </el-form-item>
      <el-form-item label="手机号码">
        <el-input v-model="form.phone"></el-input>
      </el-form-item>
    </el-form>
    <!-- <span slot="footer" class="dialog-footer">
      <el-button @click="dialogVisiblelook">取 消</el-button>
      <el-button type="primary" @click="dialogVisiblelook">确 定</el-button>
    </span>-->
  </el-dialog>
</template>

<script>
import eventBus from "../../../utils/evetBus.js";
export default {
  data() {
    return {
      dialogVisible: false,
      form: {
        id: "",
        username: "",
        type: "",
        sextype: "",
        age: "",
        atatetype: "", //接诊状态
        creatTime: "",
        section: "全科", //科室
        doctorname: "", //医生姓名
        phone: ""
      },
      typesex: {
        1: "男",
        2: "女"
      },
      atatetypeobj: {
        1: "待接诊",
        2: "接诊中",
        3: "已完成"
      }
    };
  },
  mounted() {
    eventBus.$on("batchdelete", data => {
      this.form = JSON.parse(JSON.stringify(data));
      this.form.section = "全科";
      this.dialogVisible = true;
    });
  },
  methods: {}
};
</script>

<style>
</style>